package org.wangyuhang;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.wangyuhang.service.testService;

public class test2 {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new AnnotationConfigApplicationContext(SpringConfig.class);
        testService service = (testService) applicationContext.getBean("testService");
        service.print();
    }
}
